#include <QPoint>

enum CGraphicsType
{
	Rect, Round
};

struct CDrawingElement
{
	CGraphicsType graphicsType;
	QPoint beginPos;
	QPoint endPos;
	QColor penColor;
	QColor fillingColor;
	Qt::PenStyle penStyle;

	CDrawingElement()
	{
		graphicsType = Rect;
		beginPos = QPoint(-1, -1);
		endPos = QPoint(-1, -1);
		penColor = QColor("#FF0000");
		fillingColor = QColor("#FFA500");
		penStyle = Qt::SolidLine;
	}

	CDrawingElement& operator=(const CDrawingElement& other)
	{
		if (this != &other)
		{
			graphicsType = other.graphicsType;
			beginPos = other.beginPos;
			endPos = other.endPos;
			penColor = other.penColor;
			fillingColor = other.fillingColor;
			penStyle = other.penStyle;
		}
		return *this;
	}
};